package com.sale.system.api;

import com.sale.system.api.domain.SysWorkbenchMessageResult;
import com.sale.system.api.domain.dto.SysTheAlarmDto;
import com.sale.system.api.domain.vo.SysWorkbenchAuditAgentDubboVo;
import com.sale.system.api.domain.vo.SysWorkbenchMessageVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 消息代办服务
 */
public interface RemoteWorkbenchMessageService {

    /**
     * 新增
     */
    boolean insertWork(@RequestBody List<SysWorkbenchMessageVo> list);

    /**
     * 批量新增审核待办
     */
    boolean insertAuditAgent(@RequestBody SysWorkbenchAuditAgentDubboVo sysWorkbenchAuditAgentDubboVo);

    /**
     * 修改审核代办状态
     */
    boolean updateStatus(int status,String receiptNumber,String modelName);

    /**
     * 删除审核代办
     */
    boolean deleteDoc(String receiptNumber,String modelName);

    /**
     * 查询最近一次库存量和物料编码的数据
     */
    List<SysWorkbenchMessageResult> getInfo(String type);

    /**
     * 查询告警信息
     */
    SysTheAlarmDto getAlarm(@RequestParam("materialCode") String materialCode, @RequestParam("type") String type);

}
